xen: Move CONFIG_INDIRECT_THUNK to Kconfig
authorAnthony PERARD <anthony.perard@citrix.com>
Wed, 11 Dec 2019 13:55:06 +0000 (13:55 +0000)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Thu, 30 Jan 2020 11:54:33 +0000 (11:54 +0000)
commitc3333c3a5d1224513f801aed11953234851bbf96
tree11cf788fc8820b100575cb8c4c53c6c90d21a997
parent4c91ad721c80d497fde6740a9f957f66ecff2267
xen: Move CONFIG_INDIRECT_THUNK to Kconfig

Now that Kconfig has the capability to run shell command when
generating CONFIG_* we can use it in some cases to test CFLAGS.

CONFIG_INDIRECT_THUNK is a good example that wants to exist both in
Makefile and as a C macro, which Kconfig do. So use Kconfig to
generate CONFIG_INDIRECT_THUNK and have the CFLAGS depends on that.

Signed-off-by: Anthony PERARD <anthony.perard@citrix.com>
Acked-by: Andrew Cooper <andrew.cooper3@citrix.com>
xen/arch/x86/Kconfig
xen/arch/x86/Rules.mk